package com.mis.clothespos.clothes.service.impl;


import com.mis.clothespos.clothes.domain.clothes;
import com.mis.clothespos.clothes.mapper.clothesMapper;
import com.mis.clothespos.clothes.service.IclothesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 服装商品service实现类
 */
@Service
@Primary
public class ClothesServiceImpl implements IclothesService {

    @Autowired
    clothesMapper c_mapper;


    @Override
    public int deleteByPrimaryKey(Integer id) {
        return c_mapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(clothes record) {
        return c_mapper.insert(record);
    }

    @Override
    public int insertSelective(clothes record) {
        return c_mapper.insertSelective(record);
    }

    @Override
    public clothes selectByPrimaryKey(Integer id) {
        return c_mapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(clothes record) {
        return c_mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(clothes record) {
        return c_mapper.updateByPrimaryKey(record);
    }

    @Override
    public clothes selectBySelective(clothes record) {
        return c_mapper.selectBySelective(record);
    }

    @Override
    //根据用户提供的条件，查询，返回符合条件的List回前台
    public List<clothes> checkStore(clothes detail) {
        return c_mapper.checkStore(detail);
    }

    @Override
    public List<clothes> getClothes(clothes record) {
        return c_mapper.getClothes(record);
    }

    @Override
    public clothes selectById(Integer id) {
        return c_mapper.selectById(id);
    }
}
